{anchor:msg_disassociate_0}
!! Disassociate message
!!! Constructor
!!!! new COSA.Request.Disassociate(relationshipSchemaName, target, relatedEntities, requestId)
|| Param || Type || Description ||
| relationshipSchemaName | {{string}} | RelationshipSchemaName |
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| relatedEntities | Array.<[COSA.EntityReference|COSA Namespace#lib_entityreference_0]> | Related Entities |
| requestId _*(optional)*_ | {{string}} | Request unique identifier (GUID) |
!!! Instance Properties
|| Name || Type || Description ||
| relationshipSchemaName | {{string}} | RelationshipSchemaName |
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| relatedEntities | Array.<[COSA.EntityReference|COSA Namespace#lib_entityreference_0]> | Related Entities |
!!! Example
{code:javascript}
var disassociate_0 = new COSA.Request.Disassociate('contactleads_association',
        new COSA.EntityReference('contact', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
        [
            new COSA.EntityReference('lead', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
            new COSA.EntityReference('lead', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX')
        ]
    );

//message execution
disassociate_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Core.Execute(disassociate_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]